home *** CD-ROM | disk | FTP | other *** search
/ Experimental BBS Explossion 3 / Experimental BBS Explossion III.iso / games / nhak_src.zip / PCCONF.H < prev    next >
C/C++ Source or Header  |  1993-03-16  |  3KB  |  105 lines

  1. /*    SCCS Id: @(#)pcconf.h    3.0    88/07/21
  2. /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
  3. /* NetHack may be freely redistributed.  See license for details. */
  4.  
  5. #ifdef MSDOS
  6. #ifndef PCCONF_H
  7. #define PCCONF_H
  8.  
  9. #if !defined(TOS) && !defined(AMIGA)
  10.  
  11. /* #define MSC        /* define for pre-ANSI Microsoft C compilers (ver. < 5.0). */
  12.  
  13. /* #define OS2        /* define for OS/2 (Timo Hakulinen) */
  14. /* #define OS2_CODEVIEW    /* define for OS/2 CodeView debugger versions earlier
  15.                than 2.3, otherwise path searches may fail */
  16. /*
  17.  *  The following options are configurable:
  18.  */
  19.  
  20. #define OVERLAY         /* MS DOS overlay manager - PGM */
  21.  
  22. #define DGK            /* MS DOS specific enhancements by dgk */
  23.  
  24. #define TERMLIB         /* enable use of termcap file /etc/termcap */
  25.             /* or ./termcap for MSDOS (SAC) */
  26.             /* compile and link in Fred Fish's termcap library, */
  27.             /* enclosed in TERMCAP.ARC, to use this */
  28. #define ANSI_DEFAULT    /* allows NetHack to run without a ./termcap */
  29.  
  30. #define RANDOM        /* have Berkeley random(3) */
  31.  
  32. #define SHELL        /* via exec of COMMAND.COM */
  33.  
  34. #endif /* TOS */
  35.  
  36. #define PATHLEN     64    /* maximum pathlength */
  37. #define FILENAME    80    /* maximum filename length (conservative) */
  38. #ifndef MSDOS_H
  39. #include "msdos.h"      /* contains necessary externs for [os_name].c */
  40. #endif
  41. #define glo(x)    name_file(lock, (int)x) /* name_file used for bones */
  42. extern const char *configfile;
  43.  
  44. #ifdef DGK
  45.  
  46. /*    Non-Selectable DGK options:
  47.  */
  48. # define FROMPERM     1    /* for ramdisk use */
  49. # define TOPERM      2    /* for ramdisk use */
  50.  
  51. #endif /* DGK /**/
  52.  
  53. /*
  54.  *  The remaining code shouldn't need modification.
  55.  */
  56.  
  57. #ifndef SYSTEM_H
  58. #include "system.h"
  59. #endif
  60. #define index    strchr
  61. #define rindex    strrchr
  62.  
  63. #ifndef AMIGA
  64. #include <time.h>
  65. #endif
  66.  
  67. #ifdef RANDOM
  68. /* Use the high quality random number routines. */
  69. #define Rand()    random()
  70. #define Srand(seed)    srandom(seed)
  71. #else
  72. #define Rand()    rand()
  73. #define Srand(seed)    srand(seed)
  74. #endif /* RANDOM */
  75.  
  76. #ifdef __TURBOC__
  77. #define alloc    malloc
  78. # if __TURBOC__ < 0x0200 /* version 2.0 has signal() */
  79. #define signal    ssignal
  80. # endif
  81. /* rename the next two functions - they clash with the Turbo C library */
  82. #define getdate getdate_
  83. #define itoa itoa_
  84. #endif
  85.  
  86. #ifndef TOS
  87. #define FCMASK    0660    /* file creation mask */
  88. #endif
  89.  
  90. #include <fcntl.h>
  91.  
  92. #define exit    msexit        /* do chdir first */
  93.  
  94. #ifndef REDO
  95. #undef    Getchar
  96. #define Getchar tgetch
  97. #endif
  98.  
  99. #if !defined(TOS) && !defined(AMIGA)
  100. #  define TEXTCOLOR /* */
  101. #endif
  102.  
  103. #endif /* PCCONF_H /* */
  104. #endif /* MSDOS /* */
  105.